	<div class="pad_10">
	    <form action="{:U('doAdd')}" method="post" name="form_edit" id="form_edit">
	        <table width="100%" cellpadding="2" cellspacing="1" class="table_form">
	            <tr>
	                <th width="50">标识:</th>
	                <td width="150">
	                	<input type="text" name="type" id="type" class="input-text" value="">
	                </td>
	                <td><div id="typeTip"></div></td>
	            </tr>
	            <tr>
	                <th>名称:</th>
	                <td><input type="text" name="title" id="title" class="input-text"></td>
	                <td><div id="titleTip"></div></td>
	            </tr>
	            <tr>
	                <th>排序:</th>
	                <td><input type="text" name="ordlist" id="ordlist" class="input-text" value="0"></td>
	                <td><div id="ordlistTip"></div></td>
	            </tr>
	        </table>
	        <div class="btns">
	        	<input type="submit" name="submit" value="添加" >
	        	<input type="button" name="close" value="关闭" id="dialog_button_close">
	        </div>
	    </form>
	</div>
	<script type="text/javascript" src="__ROOT__/statics/scripts/admin_dialog.js"></script>
	<script type="text/javascript">
		
		$(function(){	
			$.formValidator.initConfig({
				formID:"form_edit",
				submitOnce:true
			});
			
			var tips = {
				"typeTip":"请输入50字符以内",
				"titleTip":"请输入2-10个文字",
				"ordlistTip":"请输入0-9999之间的数字"
			}
			$("#type").formValidator({
				onShow:tips.typeTip,
				onFocus:tips.typeTip,
			}).inputValidator({
				min:1,
				max:50,
				onError:tips.typeTip
			});
			
			$("#title").formValidator({
					onShow:tips.titleTip,
					onFocus:tips.titleTip,
				}).inputValidator({
					min:2,
					max:10,
					onError:tips.titleTip
				});
			
			$("#ordlist").formValidator({
				autoModify:true,
				onShow:tips.ordlistTip,
				onFocus:tips.ordlistTip,
			}).inputValidator({
				min:0,
				max:9999,
				type:"value",
				onError:tips.ordlistTip
			});

		})
		
	
	</script>